package com.kgc.scd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kgc.scd.bean.User;
import com.kgc.scd.bean.UserExample;
import com.kgc.scd.bean.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    //显示默认地址  根据用户id和地址id联合查询
    UserVO selectAllByUserIdAndUserAddrIdUserVo(String userId);


    /*long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(String userId);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);*/
}